var express = require('express');
var router = express.Router();
const user =require('../dao/user_dao')

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post('/login',function (req,res) {
  user.Login(req,res)
})

router.get('/getUserDataByToken',function (req,res) {
  user.getUserDataByToken(req,res)
})

router.get('/getUsersByTypePage',function (req,res) {
  user.getUsersByTypePage(req,res)
})

router.get('/delUserData',function(req,res){
  user.delUserData(req,res)
})

router.post('/upDataUser',function (req,res) {
  user.upDataUser(req,res)
})

router.post('/setXlsxData',function (req,res) {
  user.setXlsxData(req,res)
})

//修改个人用户密码
router.post('/upPassword',function (req,res) {
  user.upPassword(req,res)
})
module.exports = router;
